package com.season.seasonStudy.javase.j_013_innerClass.printer;

public class Test {
	public static void main(String[] args) {
		Printer p = new Printer();
		p.setInk(new InkBox() {
			@Override
			public void show() {
				System.out.println("黑白");
			}
		});
		
		p.setP(new Paper() {
			
			@Override
			public void show() {
System.out.println("B5");				
			}
		});
		p.print("Hello small boy !");
	}
}
